<?php defined("MAIN_DIR") or die("No direct access");

$remember = UV::rStr($route->POST('remember')) ? true : false;
$auth = $user->login(UV::rStr($route->POST("login")),UV::rStr($route->POST("password")),$remember);

if ($auth){
    to("/admin/");
} else {
    to("/admin/auth/");
}

?>